<?php

namespace app\api\model;

use think\Model;

class Users extends Model
{
    protected $autoWriteTimestamp = true;

    public function getTeamAttr($value){
        $team = [
            '1'     =>  '一团',
            '2'     =>  '二团',
            '3'     =>  '三团',
            '4'     =>  '四团',
        ];
        return $team[$value];
    }
    public function getSexAttr($value){
        $sex = [
            1     =>  '男',
            0     =>  '女',
        ];
        return $sex[$value];
    }
}